﻿function Validate() {

    var obj_cmbTempo = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_cmbTempo_I');
    var obj_dtpFromDate = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_dtpFromDate_I');
    var obj_stpToDate = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_dtpToDate_I');

    if (obj_cmbTempo.value == "--Select--") {
        alert('Kindly Select Tempo.')
        obj_cmbTempo.focus();
        return false;
    }
    if (obj_dtpFromDate.value == "") {
        alert('Kindly Select From Date.')
        obj_dtpFromDate.focus();
        return false;
    }
    if (obj_stpToDate.value == "") {
        alert('Kindly Select To Date.')
        obj_stpToDate.focus();
        return false;
    }

    return true;
}